﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _2323._5._5无聊
{
    [Serializable]
     public  class Circle:Shape
    {
        static double Pi = 3.14;
        private double _r;

        public Circle(double r)
        {
            R = r;
        }

        public double R { get => _r; set => _r = value; }

        public override double Area()
        {
            return Pi * R * R;
        }

        public override double Perimeter()
        {
           return 2*Pi*R ;
        }
        public override void print()
        {
            Console.WriteLine("圆形面积为{0}，周长为{1}", Area(), Perimeter());
        }
    }
}
